/** Implementation of DataBool Class.
 * @file 
 * @author Jeremy Schultz
 */
#include "DataBool.h"


using namespace std;

//-----------------------------------------------------------------------------
// Constructor
DataBool::DataBool() : WordData(WordData::BOOL)	{
	value = false;
	size = 0;
}

//-----------------------------------------------------------------------------
// Constructor
DataBool::DataBool(bool _value) : WordData(WordData::BOOL)	{
	value = _value;
	size = 0;
}

//-----------------------------------------------------------------------------
// Constructor
DataBool::DataBool(int _size) : WordData(WordData::BOOL)	{
	value = false;
	size = _size;
}

//-----------------------------------------------------------------------------
// Getter - Value
bool DataBool::Value()	{
	return value;
}

//-----------------------------------------------------------------------------
// Setter - Value
void DataBool::setValue(bool _value)	{
	value = _value;
}

//-----------------------------------------------------------------------------
// Getter - Size
int DataBool::Size()	{
	return size;
}


//-----------------------------------------------------------------------------
// convert DataBool to string
string DataBool::toString()	{
	stringstream ss;

	ss << WordData::toString();
	ss << " value: " << value;
	ss << " size: " << size;

	return ss.str();
}

